/*-------------------------------------------------------------------------

***************** Modification History ***********************************
   @doc
   @module Entry.h - Header files for Data entry functions |
   @end
   
$Log: /SoftPay/SPK2SIM/Source/Include/entry.h $ 
**************************************************************************

   Copyright (C) 1999 by VeriFone, Inc.

   All rights reserved.  No part of this software may be reproduced,
   transmitted, transcribed, stored in a retrieval system, or translated
   into any language or computer language, in any form or by any means,
   electronic, mechanical, magnetic, optical, chemical, manual or otherwise,
   without the prior written permission of VeriFone, Inc.

---------------------------------------------------------------------------*/


#ifndef VSENTRY_H
#define VSENTRY_H

#include <ui.h>

//****** BRG 10/06/99
#define KEY_ALP         15  // BJD: changed to be same as ALPHA_KEY in APPLIDL.H
/****** BRG 10/06/99 END */

/*
 * These are the prototypes for the input routines.
 */
static void  vdInitKeypad (int inTermType);
int 	inChooseOneDefault (char *pchFirstMsg, char *pchSecondMsg, char *pchChoiceMsg, int inNumChoices, PFI pinDisplayFunc );
void 	vdFormatChoiceStr(char *pchDst, char *pchSrc, int inMaxPrmptSize, int inMaxFieldWidth);
int inEnterNumber(WIN_INFO * psr_wi8x21Win, char *szResponseString, int inMaxChars, char *szCurSym, char *szAmtFormat);
int 	inEnterWithMessage (long lnMessageNumber, VS_BOOL fScrollDisplay, char *szResponseString,
				int inDataType, int inMaxChars, int  (*inValidator)());
int 	inEnterWithMessageDefault (long lnMessageNumber, VS_BOOL fScrollDisplay, char *szResponseString,
				int inDataType, int inMaxChars, int (*inValidator)());
void vdClearEntryLines (int inTermCharsPerRow);				
static void vdEntryDisplayAt ( WIN_INFO * wi8x21Win, int inCol, int inRow, char * szDispBuf, int inClear );				
int 	inEnterWithStrDefault(long lnMsgId, char *szPromptString, VS_BOOL fScrollDisplay, char *szResponseString,
				int inDataType, int inMaxChars, int (*inValidator)());
void 	vdSetEntryRow(int  *pInRow);
void    vdReset_pchGetMsg (void);
char* 	pchGetMsg(long lnMsgIndx);
int 	inGetManualApproval(char *pchAuthCode, int inAuthCodeSize);
int 	inValInvoiceEntry(char *szString);
int 	inValStringMinLength(char *szString);
int 	inValidateString (char *szString);
int 	inZipCodeValidator(char *pszZipCode);
int 	inValidFixedResponse(char *szFixedResponse);
int 	inValidVarResponse(char *szVarResponse);
int ENTRY_CODE_CHECK(char * a,char *b,short *  c,char * d,unsigned char * e);

#endif

